<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>HouDun许愿墙</title>
	<link rel="stylesheet" href="./Css/index.css" />
	<script type="text/javascript" src='./Js/jquery-1.7.2.min.js'></script>
	<script type="text/javascript" src='./Js/index.js'></script>
    
</head>
   
<body>
    
	<div id='top'>
		<span id='send'></span>
	</div>
   
	<div id='main'>
            <?php 
               foreach($rows as $key ){
            ?>
		<dl class='paper a<?php echo rand(1,5)?>'>
			<dt>
				<span class='username'><?php echo $key['name']?></span>
				<span class='num'>No.<?php echo $key['id']?></span>
			</dt>
			<dd class='content'><?php echo $key['message']?></dd>
			<dd class='bottom'>
				<span class='time'><?php echo $key['date']?></span>
                                
                                 <a href="javascript:location.href='edis.php?id=<?php  echo $key["id"]?>'" class="bianji" ><img src="Images/xiugai.png"></a>
				<a href="javascript:"onclick="if(confirm('确定删除吗？')) location.href='delete.php?id=<?php echo $key['id'] ?>'"  class='close'></a>
			</dd>
                 </dl>
            <?php }?>  
                           
            </div>
    
	<div id='send-form'>
		<p class='title'><span>许下你的愿望</span><a href="" id='close'></a></p>
                <form action="tianjia.php" name='wish' method="post">
			<p>
				<label for="username">昵称：</label>
				<input type="text" name='name' id='username'/>
			</p>
			<p>
				<label for="content">愿望：(您还可以输入&nbsp;<span id='font-num'>50</span>&nbsp;个字)</label>
				<textarea name="message" id='content'></textarea>
				<div id='phiz'>
					<img src="./Images/phiz/zhuakuang.gif" alt="抓狂" />
					<img src="./Images/phiz/baobao.gif" alt="抱抱" />
					<img src="./Images/phiz/haixiu.gif" alt="害羞" />
					<img src="./Images/phiz/ku.gif" alt="酷" />
					<img src="./Images/phiz/xixi.gif" alt="嘻嘻" />
					<img src="./Images/phiz/taikaixin.gif" alt="太开心" />
					<img src="./Images/phiz/touxiao.gif" alt="偷笑" />
					<img src="./Images/phiz/qian.gif" alt="钱" />
					<img src="./Images/phiz/huaxin.gif" alt="花心" />
					<img src="./Images/phiz/jiyan.gif" alt="挤眼" />
				</div>
			</p>
			
                    <input style="width: 122px;height: 51px" id='send-btn' type="submit" value="">
		</form>
	</div>
    
    
    
    
    
   
<!--[if IE 6]>
    <script type="text/javascript" src="./Js/iepng.js"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('#send,#close,.close','background');
    </script>
<![endif]-->
</body>
</html>